#ifndef SHIP_INVENTORY_H
#define SHIP_INVENTORY_H

#include <QMap>
#include "component.h"

class ShipInventory
{
public:
  ShipInventory();
  ShipInventory(const QString& name);

  void addComponent(unsigned int row, unsigned int col,
                    const QString& componentName);
  void removeComponent(unsigned int row, unsigned int col);
  void clear();
  PositionComponentNameMap positionComponents() const;
  void setName(const QString& n);
  QString name() const;
  void save();

private:
  QString mName;
  PositionComponentNameMap mPositionComponents;
};

#endif
